﻿using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZyGames.Framework.Model;

namespace ZyGames.DZPocker.Model
{
	[Serializable, ProtoContract]
	[EntityTable(CacheType.Dictionary, DbConfig.Data)]
	public class GameTableData : BaseEntity
	{
		public GameTableData()
			: base(false)
		{
		}
		public GameTableData(int tableId)
			: this()
		{
			TableID = tableId;
		}

		/// <summary>
		/// 牌桌ID
		/// </summary>        
		[ProtoMember(1)]
		[EntityField(true)]
		public int TableID { get; set; }

		/// <summary>
		/// 牌桌Name
		/// </summary>        
		[ProtoMember(2)]
		[EntityField]
		public string TableName { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>        
		[ProtoMember(3)]
		[EntityField]
		public DateTime StartTime { get; set; }

		/// <summary>
		/// 结束时间
		/// </summary>        
		[ProtoMember(4)]
		[EntityField]
		public DateTime StopTime { get; set; }

		/// <summary>
		/// 房主ID
		/// </summary>        
		[ProtoMember(5)]
		[EntityField]
		public int MasterUserId { get; set; }

		/// <summary>
		/// 房主NickName
		/// </summary>        
		[ProtoMember(6)]
		[EntityField]
		public string MasterNickName { get; set; }

		/// <summary>
		/// 房主头像(字节流)
		/// </summary>        
		[ProtoMember(7)]
		[EntityField]
		public string MasterHeadIcon { get; set; }

		/// <summary>
		/// 小盲
		/// </summary>        
		[ProtoMember(8)]
		[EntityField]
		public int SmallBind { get; set; }

		/// <summary>
		/// 大盲
		/// </summary>        
		[ProtoMember(9)]
		[EntityField]
		public int BigBind { get; set; }

		/// <summary>
		/// 保险人ID
		/// </summary>
		[ProtoMember(10)]
		[EntityField]
		public int InsurancerUserID { get; set; }
		/// <summary>
		/// 牌桌时间
		/// </summary>
		[ProtoMember(11)]
		[EntityField]
		public int TableTime { get; set; }


		protected override int GetIdentityId()
		{
			return TableID;
		}
	}
}
